<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt" %>
<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title>道路车辆智能监测系统</title>
	<link href="css/start/jquery-ui-1.10.3.custom.css" rel="stylesheet" id="mycss">
	<link href="css/rvims.css" rel="stylesheet" >
	<script src="js/jquery-1.9.1.js"></script>
	<script src="js/jquery-ui-1.10.3.custom.js"></script>
	
	<script src="js/common.js"></script>
	<script src="js/control.js"></script>
	<script src="js/dialog.js"></script>
	<script>
		$(function() {
			$( "button" ).button();
			setTableCSS("ControlTasksTable");
			$("#textSXSJ").datepicker();
		  	$("#textJZSJ").datepicker();
		});
		
	</script>
</head>
<body>
	<div id="maindiv">
		<%@ include file="../common/header.jsp"%>
		<div id="content">
			<h3>布控车辆 >> 查看布控车辆</h3>			
				<table>
					<tr>
						<td align="right" style="width:90px;">号牌号码：</td>
						<td>
						<input readOnly=true value="${controlVehicle.licencePlate }"/>
						</td>
						<td style="width:90px" align="right">车辆类型：</td>
						<td >
						<input readOnly=true value="${controlVehicle.vehicleType.name }"/>
						</td>
					</tr>
					<tr>
						<td align="right" valign="top" style="width:90px;">号牌类型：</td>
						<td>
						<input readOnly=true value="${controlVehicle.licencePlateType.name }"/>							
						</td>
						<td style="width:90px" align="right">号牌种类：</td>
						<td >
						<input readOnly=true value="${controlVehicle.licencePlateKind.name }"/>	
						</td>
					</tr>
					<tr>
						<td align="right" style="width:90px;">车身颜色：</td>
						<td>
						<input readOnly=true value="${controlVehicle.vehicleColour.name}"/>	
						</td>
						<td style="width:90px" align="right">号牌颜色：</td>
						<td>
						<input readOnly=true value="${controlVehicle.licencePlateColour.name}"/>	
						</td>
					</tr>
					<tr>
						<td align="right" valign="top" style="width:90px;">生效时间：</td>
						<td>
						<input value="<fmt:formatDate value="${controlVehicle.beginTime}"/>" />
						 
						</td>
						<td align="right" style="width:90px">截止时间：</td>
						<td>
						<input value="<fmt:formatDate value="${controlVehicle.endTime}"/>"/>						
						</td>
					</tr>
					<tr>
						<td align="right" style="width:90px;">布控类型：</td>
						<td >
						<input readOnly=true value="${controlVehicle.controlType.name}"/>
						</td>					
						<td align="right" valign="top"style="width:90px;">添加原因：</td>
						<td>
							<textarea style="width:180px;">${controlVehicle.description }</textarea>
						</td>
					</tr>
				</table>
				<div style="width:100%;">
					<br/><br/><br/><br/>
			<div style="width:80%;height:160px;overflow:scroll;">
					<table id="ControlTasksTable" style="min-width:400px;" cellspacing="0" cellpadding="0">
						<thead>
							<tr>
								<td>任务名称</td>
								<td>生效时间</td>
								<td>截止时间</td>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${listControlTask}" var="controlTask">
								<tr id="objId_${controlTask.id }" >
									<td>${controlTask.name }</td>
									<td><fmt:formatDate value="${controlTask.beginTime }"/></td>
									<td><fmt:formatDate value="${controlTask.endTime }"/></td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
			</div>
			
			<div style="width:100%;height:40px;margin-top:20px;">
				<button style="float:left;" onclick="showControlVehicleSearch()">关闭</button>
			</div>
				</div>
			</div>
			
		
		<%@ include file="../common/footer.jsp"%>
	</div>
</body>
</html>